import mongoose from 'mongoose'
//schema就是数据库对象的集合
const Schema = mongoose.Schema

const PoiSchema = new Schema({
    name: {
        type: String // 景点名
    },
    province: {
        type: String
    },
    city: {
        type: String
    },
    country: {
        type: String
    },
    areaCode: {
        type: String
    },
    tel: {
        type: String
    },
    area: {
        type: String
    },
    addr: {
        type: String
    },
    type: {
        type: String
    },
    module: {
        type: String
    },
    // 经纬度信息
    longitude: {
        type: Number
    },
    latitude: {
        type: Number
    }
})



export default mongoose.model('Poi',PoiSchema)